<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="/main.xhtml">
	
	
	<ui:define name="conteudo">
		<h1 id="cadastrarQuarto" class="lugarAncora">
			Cadastrar Quarto
		</h1>
		
		<hr/>
		
		<div id="cadastrarQuarto" class="linha divForm">
			<h:form>
			
				<div class="inputs">
					
					<label for="tipoQuarto">Tipo do Quarto:</label>
					<h:selectOneMenu value="#{quartoAction.quarto.tipoQuarto}" styleClass="inputCampos">
						<f:selectItem itemLabel="Selecione...."/>
						<f:selectItems value="#{quartoAction.tiposQuartos}" var="tipo"
						 itemLabel="#{tipo}" itemValue="{tipo}"/>
					</h:selectOneMenu>		
					
					<label for="numeroQuarto">Numero do Quarto</label>
					<h:inputText value="#{quartoAction.quarto.numero}"/>
					
					<label for="consumiveis">Consumiveis:</label>
					<h:selectManyCheckbox value="#{quartoAction.consumiveisList}" layout="pageDirection" converter="#{quartoAction.converter}" styleClass="coisaNojenta">
						<f:selectItems value="#{quartoAction.consumiveis}" />
					</h:selectManyCheckbox>
				</div>
	  			
			    <h:commandButton value="Confirmar" action="#{quartoAction.cadastrarQuarto()}" title="Cadastrar Quarto" style="clear: both"/>  
	
	    	</h:form>
	    </div>	
	    
	</ui:define>		

</ui:composition>